<ion-view view-title="洗涤查询">
  <!--<div class="bar bar-subheader" style="padding: 0;">-->
    <!--<div class="item-input-inset crm-item-search">-->
      <!--<label class="item-input item-input-wrapper ink">-->
        <!--<i class="icon ion-search placeholder-icon"></i>-->
        <!--<input type="text" placeholder="输入酒店名称、ID、地址" ng-model="wash.search.value" ng-change="wash.search.doAct()">-->
      <!--</label>-->
    <!--</div>-->
  <!--</div>-->
  <ion-content class="crm-content">
    <ion-refresher
            pulling-text="下拉刷新"
            on-refresh="wash.refresh()">
    </ion-refresher>
    <ul class="list">
      <li class="item" ng-repeat="wa in wash.data track by $index" ng-click="goWashDetail(wa)" >
        <div class="row">
          <div class="col-67">
            <h2>{{wa.hotelname}}</h2>
            <div class="crm-empty10"></div>
            <p>{{wa.receivebegintime |  date:'yyyy-MM-dd HH:mm'}}</p>
          </div>
          <div class="col-33 text-right">
            <p>{{wa.status}}</p>
            <p>{{wa.sellstatus}}</p>
            <p class="crm-color">￥{{wa.totalprice| currency:""}}</p>
            <p></p>
          </div>
        </div>
      </li>
      <li class='item text-center' ng-if="wash.loaded && wash.data.length==0">
        <p>您负责的酒店还没有洗涤订单，<br>请您下次拜访酒店时，<br>向老板推荐我们的洗涤业务</p>
      </li>
    </ul>
    <ion-infinite-scroll
            ng-if="distribution.moreDataCanBeLoaded"
            on-infinite="distribution.loadMore()"
            distance="5%"
            spinner="dots"
            immediate-check="false" >
    </ion-infinite-scroll>
  </ion-content>
</ion-view>
